using System;
using System.Collections.Generic;
using System.Text;

namespace Emlyn.Common.Data.SqlServer.SqlDBAccess
{
    public delegate void SimpleSQLExceptionHandlerDelegate(Exception aException, int aTryNumber, ref bool aRetry);

    public delegate void SimpleSQLSuccessHandlerDelegate(int aTryNumber);

    // This class can be subclassed to provide custom handling of errors in TSimpleSQL calls.
    public abstract class SimpleSQLProblemHandler
    {
        public abstract void SimpleSQLException(Exception aException, int aTryNumber, ref bool aRetry);

        public abstract void SimpleSQLSuccess(int aTryNumber);
    }
}
